<?php

class search extends cls_parent {

    public function getProducts($i,$v) {
        $sql = "SELECT * FROM products where name like '%{$i}%' or des like '%{$i}%' limit $v,6";
        return $this->db->fetchAll($sql);
    } 
    
}

?>